﻿// Example header text. Can be configured in the options.
using System;
using System.Data;
using System.Linq;

namespace vtech_frameWorks.Library
{
    public class ClsObject
    {
        #region IsNullOrEmpty
        /// <summary>
        /// Method check Null or Empty
        /// </summary>
        /// <param name="value">object value</param>
        /// <returns>True or False </returns>
        public static bool IsNullOrEmpty(object value)
        {
            bool flag = false;
            if (value == null)
            {
                return true;
            }
            if (value.GetType() == typeof(string))
            {
                string str = (string)value;
                if (str == "")
                {
                    return true;
                }
                if (str.Equals(ClsString.String))
                {
                    flag = true;
                }
                return flag;
            }
            if (value.GetType() == typeof(Guid))
            {
                Guid guid = (Guid)value;
                if (guid.Equals(ClsNumeric.Guid))
                {
                    flag = true;
                }
                return flag;
            }
            if (value.GetType() == typeof(DateTime))
            {
                DateTime time = (DateTime)value;
                if (time.Equals(ClsDateTime.DateTime))
                {
                    flag = true;
                }
                return flag;
            }
            if (value.GetType() == typeof(int))
            {
                int num = (int)value;
                if (num.Equals(ClsNumeric.Int))
                {
                    flag = true;
                }
                return flag;
            }
            if (value.GetType() == typeof(decimal))
            {
                decimal num2 = (decimal)value;
                if (num2.Equals(ClsNumeric.Decimal))
                {
                    flag = true;
                }
                return flag;
            }
            if (value.GetType() == typeof(double))
            {
                double num3 = (double)value;
                if (num3.Equals(ClsNumeric.Double))
                {
                    flag = true;
                }
                return flag;
            }
            if (value.GetType() == typeof(float))
            {
                float num4 = (float)value;
                if (num4.Equals(ClsNumeric.Float))
                {
                    flag = true;
                }
            }
            return flag;
        }

        #endregion

        public static object Object
        {
            get
            {
                return null;
            }
        }

        /// <summary>
        /// Kiểu DataTable
        /// </summary>
        public static DataTable DataTable
        {
            get
            {
                return null;
            }
        }
        /// <summary>
        /// Kiểu DataRow
        /// </summary>
        public static DataRow DataRow
        {
            get
            {
                return null;
            }
        }
        /// <summary>
        /// DataSet
        /// </summary>
        public static DataSet DataSet
        {
            get
            {
                return null;
            }
        }
    }
}